<?php

namespace Addons\Slide\Model;
use Think\Model;

/**
 * Slide模型
 */
class SlideModel extends Model{
   public function linkList($param){
       $res =M('Slide')->alias('s')->join(C("DB_PREFIX").'slides ss ON ss.pid = s.id')->join(C("DB_PREFIX").'picture p ON ss.img = p.id')->where("s.name='$param'")->field('s.maxwidth,s.maxheight,s.auto,s.random,s.nav,s.timeout,s.status,ss.*,p.path')->select();
       return $res;
   }
}
